import axios from '@/libs/request/axios'
// 获取放款模式规则配置数据
export const getLoanGpsRuleList = (params) => {
    return axios.request({
        url: `/case/loanModeRule/getModeRuleList`,
        data: params,
        method: 'post'
    })
}
// 添加放款模式规则
export const addRule = (params) => {
    return axios.request({
        url: `/case/loanModeRule/addRule`,
        data:params,
        method: 'post'
    })
}

// 编辑放款模式规则
export const editRule = (params) => {
    return axios.request({
        url: `/case/loanModeRule/editRule`,
        data:params,
        method: 'post'
    })
}


// 启用放款模式规则
export const openRuleById = (id,params) => {
    return axios.request({
        url:`/case/loanModeRule/openRuleById/${id}`,
        params:params,
        method: 'post'
    })
}

// 停用放款模式规则
export const closeRuleById = (id,params) => {
    return axios.request({
        url:`/case/loanModeRule/closeRuleById/${id}`,
        params:params,
        method: 'post'
    })
}

// 更新
export const updateRuleId = (params) => {
    return axios.request({
        url: `/case/loanModeRule/updateRuleId`,
        data:params,
        method: 'post'
    })
}

// 规则同步
export const synchronousById = (id,params) => {
    return axios.request({
        url:`/case/loanModeRule/synchronousById/${id}`,
        params:params,
        method: 'post'
    })
}
